<?php get_header();?>
<!-- Trang nha hang -->
<body>
<div id="wrapper">
	<?php require_once TEMPLATEPATH.'/views/view-header.php';?>
    <?php require_once TEMPLATEPATH.'/views/view-menu.php';?>
    <div id="header-third">
    		<!--slideshow-->
 		   	<?php require_once TEMPLATEPATH.'/views/view-slide-show.php';?>
		    <!--end slideshow--> 
            <!--container-->
         <div id="container">
         <?php require_once TEMPLATEPATH.'/views/view-breadcrumb.php';?>
         <div class="clear"></div>
         <!--main content-->
            <div id="maincontent">
            	
            	
            	
            	<div id="page-index" class="page-testimonials">
                 <div class="send-testimonials"><a href="<?php echo WP_MYSITE_URL;?>/send-testimonial">aaa</a></div>  
                 <?php 
                 if(have_posts())
                 {
                 	the_post();
                 	$post_id = get_the_ID();
                 ?>              
                	<div class="gioithieu">                    
	                    <h3>Testimonials</h3>                                                                      
                    	<div id="box-content">     
                        	<?php the_content();?>                	
                    
                		</div>  
	                	<div class="back-packers-tour"><span class="line-color-red"></span><h6>View Testimonials</h6></div>    
		                <ul class="other-testimonials">
		                	<?php 
                    		$args = null;
                    		$args = db_list_different_post_type($post_id, 7, 'testimonials', 'date', 'DESC', $wpdb->prefix.'display', 'display');
                    		query_posts($args);
                    		if(have_posts())
                    		{
                    			while (have_posts())
                    			{
                    				the_post();
                    				$post_id = get_the_ID();
                    				$title = get_the_title($post_id);
                    				$perlink = get_permalink($post_id);
                    				echo '
                    				<li><a href="'.$perlink.'">'.$title.'</a></li>
                    				';
                    			}
                    			wp_reset_query();
                    		}
                    		?>	                    	
	                    </ul>          	
                    </div>
                   <?php 
                 }
                   ?> 
                    
                </div>
            	
                
                
            </div>
            <!--main content-->
            <!--sidebar-right-->
            <?php get_sidebar();?> 
            <!--sidebar-right-->
            <div class="clear"></div> 
        </div>
        <!--container-->
        <!--bgfooter-->
<?php get_footer();?>
          